package com.myf.mappers;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.myf.dtos.inventory.InventoryQueryOutput;
import com.myf.entities.InventoryEntity;

import java.util.List;
import java.util.Map;

public interface InventoryMapper extends BaseMapper<InventoryEntity> {
    /**
     * 分页查询数据
     *
     * @param map 查询对象
     *            <ul>
     *              <li>keyword - 关键字</li>
     *              <li>limit - 分页</li>
     *              <li>offset - 跳行</li>
     *            </ul>
     */
    List<InventoryQueryOutput> getPaginationList(Map<String, Object> map);

    /**
     * 分页查询数据
     *
     * @param map 查询对象
     *            <ul>
     *              <li>keyword - 关键字</li>
     *            </ul>
     */
    int getPaginationCount(Map<String, Object> map);

}
